package com.xbongbong.pro.sharepermission.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.metamodel.StaticMetamodel;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author 李翔
 * @date 2023/3/9
 * @description
 */
@Getter
@Setter
@ToString
public class SharePermissionConditionFilters {
    /**
     * 条件组内 条件
     */
    @Valid
    @Size(max = 5, message = "{dto.msg.conditionNode.conditions.Size.max}")
    @NotNull
    @NotEmpty
    private List<SharePermissionConditionPojo> filter;
    /**
     * 且或 设置
     */
    @NotBlank
    private String operator;



}
